#pragma once

class CSplashscreen: public IGameMode, public EngMod<CSplashscreen>, public IRender
{
public:
	CSplashscreen();
	~CSplashscreen();

	/*-IGameMode----------------------------------------------------------------*/
	void OnCalc(unsigned int threadId);
	void OnStart();
	void OnStop();

	/*-EngMod-------------------------------------------------------------------*/
	void OnInit();

	/*-IRender------------------------------------------------------------------*/
	void OnRender(const unsigned int i, vl::Render::LevelOfDetail quality);

	/*--------------------------------------------------------------------------*/

	void SetSplashTexture(Texture* t);
	void SetSplashTexture(const std::string& name);

private:
	Texture* m_splashscreen;
};

namespace sh
{
void splashscreen(const std::string& name);
};
